Edit Menu Structure
QuickDraw GX supports basic editing commands when a print dialog box is active. The user can Cut, Copy, Paste, and Clear edit text. To handle this task, QuickDraw GX must know the ID of the Edit menu, and the location within the edit menu of the items that correspond to Cut, Copy, Paste, and Clear.Your application specifies this information in an Edit menu structure, named gxEditMenuRecord:
struct gxEditMenuRecord{ short editMenuID; short cutItem; short copyItem; short pasteItem; short clearItem; short undoItem; } ;TheeditMenuID
field specifies the ID of the Edit menu. The other fields identify the location of items in the Edit menu. For an example of how to set up an Edit menu structure, see "Displaying QuickDraw GX Print Dialog Boxes" beginning on page 2-35.
Because QuickDraw GX handles all menu items while a print dialog box is displayed, your application should disable all of its menus, except the Edit menu. It should also disable the About box under the Apple menu. Adjusting menus for movable modal dialog boxes such as print dialog boxes is described in Inside Macintosh: Macintosh Toolbox Essentials.
- Note
- QuickDraw GX does not support the Undo item.
![]()
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help